/*
 * Static.h
 *
 *  Created on: 2013. 8. 5.
 *      Author: jjaehuny
 */

#ifndef CASHESERVER_STATIC_H_
#define CASHESERVER_STATIC_H_

#include <map>
#include <vector>
#include <memory>

#include <Toolkit/Single.h>

namespace CacheServer {

class User;

static const int s_MaxUser = 20000;
static const int s_Mode = 10;

typedef Toolkit::Pool<User> POOL;
typedef std::map<int, std::shared_ptr<User> > MAP;

class Static : public ::Toolkit::Single<Static>
{
public:
	Static() : clsUserPool(s_MaxUser), s_clsTreeVector(s_Mode) {}

public:
	//typedef Toolkit::Pool<User> POOL;
	POOL clsUserPool;

public:
	//typedef std::map<int, std::shared_ptr<User> > MAP;
	std::vector<MAP> s_clsTreeVector;
};

} /*CacheServer*/


#endif /* CASHESERVER_STATIC_H_ */
